Skip to content

fix(adr-0087): refuse not-required (no-migration-prescription) on a declared Metadata-protocol: narrowed - #32649

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-32601-narrowed-no-prescription-refused
Nov 12, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-32601-narrowed-no-prescription-refused

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #32601

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么: check-adr-0087-registration 门禁现在拒绝在声明 Metadata-protocol: narrowed 的 changeset 上使用 not-required (no-migration-prescription);registered 与有事实核验的类别(already-registered、unpublished、runtime-interface-only、type-surface-only、runtime-export-retired)照常放行。
  • 为什么改: 收窄就是作者原来能写的东西现在被拒,升级指南和 os migrate meta 必须有对应条目;过去只要把修法写成散文、不写箭头或表格,就能绕过这条豁免。存量 63 个 narrowed changeset 里有 40 个就这样没有登记。
  • 风险与回滚: 只判本 PR 新增或新变为 breaking 的 changeset,存量一个都不会变红。在途的 PR fix(lint)!: an object-grid column summary the aggregate door refuses is refused at authoring, under list-view-summary-field-type-refused #32611 自带的 changeset 正是这种形态,若它晚于本 PR 合并,会被拦下,需要补一个 semantic 条目。回滚就是 revert 本提交。
  • 先看: scripts/check-adr-0087-registration.mjs 里 scan() 新加的拒绝分支(紧跟未知类别检查之后,排在 40 字说明检查之前);同文件的 NP 自测电池;classifyStockChangeset 的一处对齐。
  • 两分钟验证: node scripts/check-adr-0087-registration.mjs --self-test,预期末行 ✓ check-adr-0087-registration --self-test: 739 assertions ...。
  • 需要你做的: 无,席位落地。

What changes

Implements the seat decision on the card (option A): when a changeset declares Metadata-protocol: narrowed (signal (5)), the disposition not-required (no-migration-prescription) is refused.

  • scan() refuses that one category on a changeset whose breakingDeclaration().signals carry NARROWED_SIGNAL. The kind is read through the imported readMetadataProtocolLine (inside breakingDeclaration), never by a second parser. The refusal runs right after the closed-vocabulary check and before the 40-character justification check, so neither wording nor a justification can earn the category on a narrowing.
  • The refusal names the fix: register an entry under packages/spec/src/migrations/entries/semantic/ (precedent 18.picklist-binding-unknown-refused.ts) and mark the changeset adr-0087: registered ENTRY-ID, or use a category that rests on a checked fact if one is true. It also says that a change that refuses nothing should correct its Metadata-protocol: line instead.
  • Unchanged: registered and every fact-checked category stay open on a narrowing; added, semantic and none keep the catch-all; a malformed or near-miss kind line triggers nothing; stock that was already breaking at the branch point is inherited and never re-judged.
  • NARROWED_SIGNAL ('metadata-protocol-narrowed') is now one exported constant read by both breakingDeclaration and the new refusal.
  • classifyStockChangeset (--audit-stock) no longer labels an unanswered narrowing as exempt-no-prescription. It reports it as residue, with the declaration line as evidence, so the audit agrees with the gate.
  • Header: a new section, "A declared narrowing owes the upgrade guide", plus a pointer from the no-migration-prescription bullet.

Tests

New self-test battery NP (#32601), with a floor of 29 cases:

  • NP-0: the bare fixture is breaking by signal (5) and by nothing else (minor bump, no banner, no !, an arm-less Clause-②: line).
  • NP-R1 / R2: narrowed + catch-all is refused, both with signal (5) alone and with the (narrowing) arm and a banner. The refusal names the changeset and the semantic-entries directory.
  • NP-R3: a too-short justification gets the narrowing refusal, not the length refusal (ordering pin).
  • NP-G1: the same body with registered (an entry this diff adds) passes.
  • NP-G2: already-registered stays open on a narrowing.
  • NP-G3: added / semantic / none + catch-all pass, and each is asserted to have been JUDGED under the catch-all, not skipped as non-breaking.
  • NP-G4: a malformed kind line (narrowed|added) refuses nothing and is still judged.
  • NP-G5: an inherited narrowed + catch-all stock changeset, edited at head, is skipped.
  • NP-S1 / S2: the stock classifier reports an unanswered narrowing as residue and an unanswered semantic as exempt.

Acceptance notes

  • Measured on stock (8bfbc4ed, using the gate's own exported parseChangeset / breakingDeclaration / readDisposition over 1101 pending changesets): 243 declare breaking, 63 declare narrowed. Of those 63, 40 hold no-migration-prescription, 20 are registered, 3 are already-registered, and 0 carry no marker. The card measured 39 of 62; one more such changeset landed since.
  • Newly failing on this PR's diff: 0. node scripts/check-adr-0087-registration.mjs --base origin/main prints "this PR adds no declared-breaking changeset". Stock is never re-judged (pinned by NP-G5).
  • Open lane PRs (checked only the three named in the dispatch): PR fix(lint)!: an object-grid column summary the aggregate door refuses is refused at authoring, under list-view-summary-field-type-refused #32611's added changeset .changeset/32503-object-grid-column-summary-refused.md declares narrowed and holds not-required (no-migration-prescription), so it is a hit. To check it end to end, I put that file on a throwaway commit object over this head and judged it through the CLI. The base script (8bfbc4ed) exits 0 (green). This branch exits 1 with the new refusal. Whichever of the two PRs lands second will see it, so I am reporting it here and have not edited that PR. PR docs(spec): upgrade-guide entries for the flow-start-node-missing and flow-node-unreachable refusals (#32345) #32597 moves 31224 / 32289 to registered and is unaffected. PR fix(lint): field-no-consumers reads a field permission's row condition (when) as a read of the fields it names #32625's changeset is not breaking.
  • The ruling's list of open categories names four fact-checked categories and leaves out runtime-export-retired, which is also fact-checked (verifyRuntimeExportRetired). The ruling refuses exactly one category, so runtime-export-retired stays open, and the refusal text lists it among the alternatives.
  • ADR-0087 is not edited. The category vocabulary does not change, so the ADR/CATEGORIES set check (assertInputs) is unaffected. The ADR's prose about no-migration-prescription does not mention the narrowing refusal yet. That is a governed-surface follow-up for the seat, not part of this diff.
  • No ablation. The dispatch suggested one, but the standing dev contract says scripts are not ablated. Instead, the before/after reading on PR fix(lint)!: an object-grid column summary the aggregate door refuses is refused at authoring, under list-view-summary-field-type-refused #32611's real changeset (base green, head red) shows the new branch is what refuses it.
  • No changeset. scripts/ ships in no package's files[] and the root package is private, so this PR carries skip-changeset.

Verification

All of the following ran on head f8e7263f.

Self-test and the gate over this diff
node scripts/check-adr-0087-registration.mjs --self-test   exit 0
✓ check-adr-0087-registration --self-test: 739 assertions over real temp git repos (real scan()/assertInputs() path)

node scripts/check-adr-0087-registration.mjs --base origin/main   exit 0
✓ check-adr-0087-registration: this PR adds no declared-breaking changeset (0 non-breaking changeset(s) seen).

pnpm check:changeset-gate-self-tests   exit 0
✓ check-empty-changeset --self-test: 167 assertions
✓ check-adr-0087-registration --self-test: 739 assertions
✓ check-changeset-no-major --self-test: 456 assertions
End to end on PR #32611's changeset (throwaway commit object over this head)
base script 8bfbc4ed   exit 0   ✓ check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition.
this branch f8e7263f   exit 1   ✗ check-adr-0087-registration: 1 problem(s).
  • .changeset/32503-object-grid-column-summary-refused.md
      `not-required (no-migration-prescription)` is refused on a changeset that declares
      `Metadata-protocol: narrowed`. ...
      fix: register an entry under packages/spec/src/migrations/entries/semantic/ ...
Derived gate families: 33 derived, 33 run, 0 UNRUN

node scripts/pm/dispatch-gates.mjs --ran returned ✓ 33 derived famil(ies) accounted for — 33 run, 0 NOT-MEASURED. 32 of the 33 have an exit code captured before any pipe, and every one of those 32 is 0.

The exception is pnpm check:pm-dispatch-gates. It runs longer than the foreground cap, so it ran detached and its exit code was not captured. Its own verdict line: ✓ dispatch-gates self-test (fast tier): 2205 cases pass; 9 slow section(s) deferred.

These ran and exited 0: check:agent-test-spelling, bash32-floor, changeset-gate-self-tests, ci-filter-parity, cli-command-ids, cross-package-test-inputs, driver-memory-census, entry-guard, gitlink-declared, nul-bytes, parse-guard, pnpm-filter-targets, pnpm-flag-spellings, ratchet-remedy-authority, refd-timer-probe, scripts-symbol-anchors, watch-hint-literal. Also exit 0: check-declaration-mirrors, check-self-test-wired, check-self-test-workflow-commands, check-whole-set-label-write and check-closing-keyword-parity (each with its --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, and bare-root-worklist --self-test.


Generated by Claude Code

…eclared Metadata-protocol: narrowed

A changeset declaring `Metadata-protocol: narrowed` (signal (5), read through
the imported readMetadataProtocolLine) refuses something an author used to
write, so the upgrade guide owes it a ledger entry; the catch-all exemption was
held whenever the fix was written as prose the prescription detector misses.
The gate now refuses that one category on a declared narrowing, before the
justification or body is read. `registered` and the fact-checked categories
stay open; `added` / `semantic` / `none` keep the catch-all; inherited stock is
never re-judged. The --audit-stock classifier follows the same verdict.

Self-test: new NP battery (29 cases).

Claude-Session: https://claude.ai/code/session_017xRBcSbLCxEmyHf9upz3pz
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 12, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

席位核对

ACCEPT · head f8e7263fbe2b819436c96f677d3b485f20ed85d7 · 2026-11-12T09:22Z · card #32601 (claim 6818832930; seat decision A in the card body; report 6819467613)

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 12, 2026 09:23
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit a8c761f Nov 12, 2026
50 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-32601-narrowed-no-prescription-refused branch November 12, 2026 09:42
os-bill pushed a commit that referenced this pull request Nov 12, 2026
…uide (#31700)

#32649 refuses `adr-0087: not-required (no-migration-prescription)` on a
changeset declaring `Metadata-protocol: narrowed`. The narrowing this PR
declares now has its semantic entry,
`picklist-family-names-per-namespace`: no automatic rewrite, because which
holder a reader, a field or an extension meant is a judgement about that
caller. The changeset marks it `adr-0087: registered`; a spec patch
changeset carries the entry.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbqzUZJRphdYbBQ16b
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…escription refusal (objectstack-ai#33460)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XWeZ4ajeCsXahYfTfSdHCJA)_

Fixes objectstack-ai#32674

domain:skills#1 · os-project-manager · session_01FEkQ5kEE8LS4Ggh2CNTqiR

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:ADR-0087 处置词表段落里 `no-migration-prescription` 一句补上第二种拒收(2026-11-12
修订注,引 objectstack-ai#32601 / PR objectstack-ai#32649):changeset 声明 narrowed
的元数据协议种类时,不读正文直接拒收;并写明出路(登记 semantic 条目,或确实成立的有事实可核的类别)。2026-08-30
附录的类别表同一行加修订注指回该段。
- 为什么改:门禁自 PR objectstack-ai#32649 起已这样拒收,ADR 仍只写「正文带迁移处方才拒收」;作者照 ADR 选了这个豁免,会撞上 ADR
没解释的拒收。
- 风险与回滚:只改一个 ADR 文件(+19/−6,其中 −6 是同段落为插入文字重新折行),不动门禁、词表、代码、技能;回滚即还原本 PR。
- 先看:`docs/adr/0087-metadata-protocol-upgrade-contract.md` 第 764
行起的处置词表段落(「amended 2026-11-12」括注),再看第 880 行类别表
`no-migration-prescription` 那一行。
- 两分钟验证:`node scripts/check-adr-0087-registration.mjs --self-test &&
node scripts/check-adr-0087-registration.mjs --base origin/main`,预期两者
exit 0(门禁读 ADR 的类别集合,集合不变)。
- 需要你做的:受管面 Tier H(`docs/adr/**`):请批准或合并。

## What changes

One file, `docs/adr/0087-metadata-protocol-upgrade-contract.md` (+19 /
−6). No gate, `CATEGORIES` or vocabulary change.

- **The disposition paragraph** of the 2026-08-13 addendum (`:764`).
After "`no-migration-prescription` is refused by a body that carries a
migration prescription" comes an inline amendment, in the ADR's own
`(**amended DATE**, #card: …)` style, citing objectstack-ai#32601, seat decision A,
landed as PR objectstack-ai#32649 (`a8c761fb`). It states the refusal as the gate
makes it: refused outright, before its justification or its body is
read, on a changeset that declares a `narrowed` Metadata-protocol kind
(signal (5) of the breaking declaration); why (a narrowing refuses
something an author used to write, and the upgrade guide and
`objectstack migrate meta`, both generated from the ledger, are where an
upgrading author learns it, however the fix is worded); the prescription
(a `registered` semantic entry under
`packages/spec/src/migrations/entries/semantic/`, or
`already-registered` / `unpublished` / `runtime-interface-only` /
`type-surface-only` / `runtime-export-retired` when one is true; a
change that refuses nothing should correct its `Metadata-protocol:`
line); and the two boundaries (`added`, `semantic`, `none` keep the
exemption; a changeset already breaking at the branch point is
inherited). The −6 lines are the rest of the same paragraph re-wrapped
around the insertion; no word of it changed.
- **The category table row** in the 2026-08-30 addendum (`:880`). The
measured `refused — the body carries a FROM/TO block.` stays, and a
dated note says that on a declared narrowing the category is refused
before the body is read, pointing back to the paragraph above. The table
is a measurement of the objectstack-ai#12104 shape, so the note adds the second
refusal without re-grading that measurement.

## Acceptance notes

The text was read from the gate on `origin/main` `ba35dfd7` (no commit
after `a8c761fb` touches either file), not from the card's line numbers:

| Claim in the new text | Read from
`scripts/check-adr-0087-registration.mjs` |
|---|---|
| refused before the justification and body are read | `scan()`: the
`NARROWED_SIGNAL` check sits after `CATEGORIES.includes` and before the
40-character `why` check and every body read |
| the trigger is a declared `narrowed` kind | `breakingDeclaration()`:
`kind?.kind === 'declared' && kind.value === 'narrowed'` pushes
`NARROWED_SIGNAL` |
| the reason and the fix (semantic entry, or a fact-checked category;
else correct the declaration) | the refusal's own message text in
`scan()`; `MIGRATION_LEDGER_ENTRY_DIRS[0]` =
`packages/spec/src/migrations/entries/semantic` |
| `added` / `semantic` / `none` keep it; branch-point stock is inherited
| header section "A declared narrowing owes the upgrade guide (objectstack-ai#32601)",
both bullets; the `M`/`R` inheritance branch in `scan()` |

- Premise holds: before this PR the ADR named only the body-prescription
refusal (`grep -n "32601\|narrowed"` hit nothing in the disposition
paragraph or the table).
- The VOCABULARY DRIFT assertion reads the ADR's marker examples (the
`adr-0087: not-required (CATEGORY` comment lines); the edit adds none,
and both gate runs below pass it.
- Not touched: the Status block (it lists maintainer-ruled amendments;
this follows a seat decision under an existing gate), and the 2026-10-12
addendum's table (`:1078`, `admitted` for objectstack-ai#22875's arrowless retirement
lines): it records a measurement of that changeset under the gate of its
day, outside the card's Ask.

## Verification

<details><summary>Derived gates on head c87603a (25 of 25 exit
0)</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 25 commands; each ran with its exit
captured before any pipe. `--ran`: "25 derived famil(ies) accounted for
— 25 run, 0 NOT-MEASURED". `check:doc-formula-expressions` ran after
`pnpm --filter "@objectstack/lint..." build` under the lock (VERDICT
command-exit 0).

```
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:future-spec-major :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
```
</details>

<details><summary>Tier and governed-merge verdicts</summary>

- `dispatch-gates --tier`: MANDATORY contract-review tier for
`docs/adr/**` (no one-line exit). This card thread ran on the claim's
default tier; named as a deviation in the report, and the seat's in-seat
contract review at tier is the owed record.
- `check-governed-merges.mjs --branch claude/project-thread-4z6pjc`:
exit 3, GOVERNED, landing tier H (人合), `docs/adr/** ×1`; 25 changed
lines, under the 3000 threshold.
- Changeset: `skip-changeset` (`docs/adr/**` ships in no package).
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kEE8LS4Ggh2CNTqiR)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5pjSPT7ui2EUcunaVb -->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants